<%@ page import="com.caucho.hessian.client.HessianProxyFactory,app.demo.BasicAPI"%>
<%@page language="java"%>
<%
	HessianProxyFactory factory = new HessianProxyFactory();
	String url = ("http://" + request.getServerName() + ":"
			+ request.getServerPort() + request.getContextPath() + "/hello");
	out.println(url);
	BasicAPI basic = (BasicAPI) factory.create(BasicAPI.class, url);
	out.println("Hello: " + basic.hello());
	out.println("Hello: " + basic.getUser().getUserName());
	out.println("Hello: " + basic.getUser().getPassword());
%>
